<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>


<head>
    <title><fmt:message key="userList.title"/></title>
    <content tag="heading"><fmt:message key="userList.heading"/></content>
    <meta name="menu" content="AdminMenu"/>
</head>


<table width="100%" height="76" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="left" valign="top" >
	  
	  
			<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
				<td height="25" bgcolor="#5F9CD4" class="font01">&nbsp;&nbsp;&nbsp;&nbsp;系统&gt;&gt;用户管理</td>
			  </tr>
			  <tr>
				<td height="8"></td>
			  </tr>
			</table>
			  <%/**
			  <!---QUERY BEGIN--->
			  <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CDCDCD">
				<tr>
				  <td height="27" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF" style="background-repeat:no-repeat;background-position:right">
						<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
							  <td width="2%"><img src="img/dian-1.gif" width="6" height="6" /></td>
							  <td width="48%" class="btn02">查询条件</td>
							  <td width="50%">&nbsp;</td>
							</tr>
						  </table>
				  </td>
				</tr>
				<tr>
				  <td bgcolor="#F8F8F8">
					    <table width="100%" border="1" cellspacing="0" cellpadding="1" bordercolor="ffffff" bordercolordark="#ffffff" bordercolorlight="B9B9B9">
							<tr align="center">
							  <td width="133" height="28" bgcolor="#EFEFEF"> 用户名</td>
							  <td width="310" height="28">
							  <input type="text" name="textfield12" width="120" >							  </td>
							  <td width="156" height="28"bgcolor="#EFEFEF"> 姓名</td>
							  <td width="625" height="28">
							  <input type="text" name="textfield" width="120" >							  </td>
							</tr>
							<tr align="center">
							  <td height="28"bgcolor="#EFEFEF"> Email</td>
							  <td height="28">
							  <input type="text" name="textfield11" width="120" >							  </td>
							  <td height="28"bgcolor="#EFEFEF"> 状态</td>
							  <td height="28">
							  <input type="text" name="textfield2" width="120" >							  </td>
							</tr>
							<tr align="center">
							  <td height="28"bgcolor="#EFEFEF"> 机构</td>
							  <td height="28">
                                <input type="text" name="textfield11" width="120" >
                              </td>
							  <td height="28"bgcolor="#EFEFEF"> 部门</td>
							  <td height="28">
							  <input type="text" name="textfield3" width="120" >							  </td>
							</tr>
					</table>			  
						<table  width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="ffffff" bordercolorlight="B9B9B9" bordercolordark="#ffffff">
						  <tr bgcolor="#99CCCC" >
							<td width="25%" height="28" align="center"  bgcolor="#EFEFEF">&nbsp; </td>
							<td width="27%" height="28" align="center"  bgcolor="#EFEFEF">
							  <input type="submit" name="Submit" value="查询">&nbsp;&nbsp;&nbsp;&nbsp;
						    <input type="submit" name="Submit" value="清空">							</td> 
							<td width="48%" height="28"   bgcolor="#EFEFEF" >&nbsp;</td>
						  </tr>
					</table>
				  
				  </td>
				</tr>
			  </table>
			  
			 <!---QUERY END--->
	  
	  */ %>
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td>&nbsp;</td>
				</tr>
			  </table>
      
	           <form action="#" name="editForm"  method="post">
			  <!---list begin--->
			  <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CDCDCD">
				<tr>
				  <td height="25" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF" style="background-repeat:no-repeat;background-position:right">
				  
					  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
						  <tr>
							<td width="2%" height="24"><img src="img/dian-1.gif" width="6" height="6" /></td>
							<td width="48%" class="btn02">用户列表 </td>
							<td width="50%" align="right"><span class="text4">
							
							<a href="<html:rewrite forward="addUser"/>">增加</a> | 修改| 删除</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
						  </tr>
					  </table>
				   </td>
				</tr>
				<tr>
				  <td valign="top" bgcolor="#F8F8F8">
						    
						    <c:set var="buttons">
							    <input type="button" style="margin-right: 5px"
							        onclick="location.href='<html:rewrite forward="addUser"/>'"
							        value="<fmt:message key="button.add"/>"/>
							  
							</c:set>
							
							
						 <c:set var="checkAll">
		                          <input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 4px"/>
	                     </c:set>
               
	            	
						<display:table name="userList" cellspacing="0" cellpadding="0" requestURI="" 
						    id="users" pagesize="50"  class="simple"  >
						    
						    <display:column   title="<input type=\"checkbox\" name=\"allbox\" onclick=\"checkAll(this.form)\">">
								  <input type="checkbox" name="ids" value="<c:out value='${users.id}'/>"/>
							 </display:column>
			
						    <display:column property="username" escapeXml="true" sortable="true" titleKey="userForm.username"
						        url="/editUser.html?from=list" paramId="username" paramProperty="username"/>
						    <display:column property="userNo" escapeXml="true" sortable="true" titleKey="userForm.userNo" />
						    <display:column property="fullName" escapeXml="true" sortable="true" titleKey="activeUsers.fullName"/>
						    <display:column property="email" sortable="true" titleKey="userForm.email"  autolink="true" media="html"/>
						    
						    <display:column property="branch.branchName" sortable="true" titleKey="userForm.branch"  />
						    <display:column property="dept.deptName" sortable="true" titleKey="userForm.dept"  />
						    
						    <display:column sortProperty="enabled" sortable="true" titleKey="userForm.enabled" style="width: 16%; padding-left: 15px" media="html">
						        <input type="checkbox" disabled="disabled" <c:if test="${users.enabled}">checked="checked"</c:if>/>
						    </display:column>
						    <%/**
						      <display:column  titleKey="table.privilage"> 
								    <a href="">查看权限</a>
							  </display:column>   
							  */ %>   
                               <display:column  titleKey="table.operating"> 
								    <a href="editUser.html?from=list&id=<c:out value="${users.id}"/>">修改</a>|
								    <a href="users.html?method=delete&id=<c:out value="${users.id}"/>&firstName=<c:out value="${users.firstName}"/>" onclick="bCancel=true; return confirmDelete('user')">删除</a> 
								</display:column>
								
						
						    <display:setProperty name="paging.banner.item_name" value="user"/>
						    <display:setProperty name="paging.banner.items_name" value="users"/>
						
						</display:table>

							
					 </td>
					</tr>
				  </table>
	  
	          <!---list end--->
		    </form>
	   
	</td>
  </tr>
</table>




<script type="text/javascript">
    highlightTableRows("users");
</script>